<template>
    <div>
        <button @click="$router.push('/layout/home')">返回上一级</button>
        秒杀页
        <button @click="goShopDetail">去商品详情</button>
    </div>
</template>

<script>
export default {
    name: 'seckill',
    created() {
        console.log('秒杀页被加载了')
    },
    methods: {
        goShopDetail() {
            this.$router.push({
                path: '/layout/detail',
                query: { routerType: 'push' },
            })
        },
    },
}
</script>

<style>
</style>